package cn.micai.base.io;

/**
 * 描述：How to get home directory in java
 * <p>
 *
 * @author: 赵新国
 * @date: 2018/6/7 14:44
 */
public class getHomeDirectoryMain {

    public static void main(String [] args) {

        System.out.println("--------------------");

        String homeDirectory = "";
        homeDirectory = System.getProperty("user.home");
        System.out.println("Home directory is : "+homeDirectory);

        System.out.println("--------------------");

    }

}
